<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。    
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/style.css" />
<script type="text/javascript" src="<%= basePath%>style/js/jquery.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/bootstrap.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/ckform.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/common.js"></script>



<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

.errorClass{
	display: inline;
	color: red;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
</head>
<body>
	<form action="index.html" method="post" class="definewidth m20">
		<table style="width: 1000px;"  class="table table-bordered table-hover definewidth m10">
			<tr>
				<td class="tableleft" style="text-align: left"><font size="5px" ><b>业主基本信息</b></font>
				&nbsp;&nbsp;
				</td>
				<td class="tableleft" ><input type="hidden"  name="uId" id="uId"  value = "${user.uId }" /></td>
			</tr>
	
			<tr>
				<td width="30%"  class="tableleft" style="text-align: right">业主姓名：</td>
				<td width="70%"  >  ${owner.oName}</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">性别：</td>
				
				<td><c:if test="${owner.oSex==0}">
							 男
				</c:if>
				<c:if test="${owner.oSex==1}">
							 女
				</c:if>	
				</td>			
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">身份证号：</td>
				<td>${owner.oIdcard}</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">手机号：</td>
				<td>${owner.oTell}</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">入住时间：</td>
				<td width="15%"><fmt:formatDate value="${owner.oTime}"
									pattern="yyyy-MM-dd" /></td>
			</tr>
		</table>
	</form>
	
	
	<form action="index.html" method="post" class="definewidth m20">
		<table style="width: 1000px;"  class="table table-bordered table-hover definewidth m10">
			<tr>
				<td class="tableleft" style="text-align: left"><font size="5px" ><b>业主房屋信息</b></font></td>
				<td class="tableleft" ></td>
			</tr>
			<tr >
				<td  width="30%" class="tableleft" style="text-align: right">栋：</td>
				<td  width="70%"  >${tenement.tDong}栋</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">单元：</td>
				<td>${tenement.tUnit}单元</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">门牌号：</td>
				<td>${tenement.tNum}号</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right" >房屋面积：</td>
				<td>${tenement.tArea}平方米</td>
			</tr>
		</table>
	</form>
</body>
</html>
